package org.blog.dao;

import org.apache.ibatis.annotations.Mapper;
import org.blog.entity.Comments;
import org.blog.entity.param.CommentsParam;
import org.blog.entity.vo.CommentsVO;

import java.util.List;
import java.util.Map;

@Mapper
public interface CommentsMapper {
    int deleteByPrimaryKey(Integer commentsId);

    int insert(Comments record);

    int insertSelective(Comments record);

    Comments selectByPrimaryKey(Integer commentsId);

    int updateByPrimaryKeySelective(Comments record);

    int updateByPrimaryKey(Comments record);

    List<Comments> getComments(CommentsParam param);

    List<CommentsVO> getCommentsVOByArticleId(Integer articleId);
    List<Comments> getComments(Map<String, Object> map);


}